﻿using System.Data.Common;
using System.Data.SqlClient;
using MvcMiniProfiler.Data;

namespace MvcMiniProfiler.NHibernate
{
    public class ProfiledSqlCommand : ProfiledDbCommand
    {
        private SqlCommand sqlCommand;

        public ProfiledSqlCommand(DbCommand command, IDbProfiler profiler)
            : base(command, null, profiler)
        {
            this.sqlCommand = (SqlCommand)command;
        }

        public SqlCommand SqlCommand
        {
            get { return sqlCommand; }
        }
    }
}